<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>朝阳教堂</title>
<link href="css/sytle.css" rel="stylesheet" type="text/css" />
<script src="js/jquery-1.7.1.min.js" type="text/javascript"></script>
<script language="javascript" type="text/javascript">
$(document).ready(function() {
	$("#lanague_zh").click(function() {
		chooseLocales("zh");
	});
	$("#lanague_en").click(function() {
		chooseLocales("en");
	});
});
	function chooseLocales(lg) {
		var url = "chooseLocales";
		$.getJSON(url, {lanague:lg}, function callback(data) {
		});
	}
</script>
</head>

<body>
	<div class="container">
		<div id="header">
			<img class="logo" src="images/logo.jpg" width="163" height="99"
				style="background: #C6D580; display: block;" />
			<!-- start login-->
			<div>
				<a id="lanague_zh" href="chooseLocales?lanague=zh">中文</a><span>|</span><a id="lanague_en" href="chooseLocales?lanague=en"
					title="English">English</a>
				<s:if test="#session.USER_NAME==null">
					<a href="register.jsp" target="mainFrame">注册</a>
				</s:if>
				<s:else>
					<a href="logout">注销</a>
				</s:else>
				<s:i18n name="globalMessage">
					<s:if test="#session.USER_NAME==null">
						<s:form action="login">
							<s:textfield name="name" key="user.name"></s:textfield>
							<s:password name="password" key="user.password"></s:password>
							<s:submit key="user.login"></s:submit>
						</s:form>
					</s:if>
					<s:else>
					欢迎<s:property value="#session.USER_NAME" />!
						<s:if test="#session.USER_GROUP=='admin'">
							<li><a href="admin.jsp" target="mainFrame"><s:text
										name="menu.admin" /></a></li>
						</s:if>
						<s:elseif test="#session.USER_GROUP=='children'">
							<li><a href="group_children.jsp" target="mainFrame"><s:text
										name="menu.group" /></a></li>
						</s:elseif>
						<s:elseif test="#session.USER_GROUP=='choir'">
							<li><a href="group_choir.jsp" target="mainFrame"><s:text
										name="menu.group" /></a></li>
						</s:elseif>
						<s:elseif test="#session.USER_GROUP=='liaison'">
							<li><a href="group_liaison.jsp" target="mainFrame"><s:text
										name="menu.group" /></a></li>
						</s:elseif>
						<s:elseif test="#session.USER_GROUP=='biblestudy'">
							<li><a href="group_biblestudy.jsp" target="mainFrame"><s:text
										name="menu.group" /></a></li>
						</s:elseif>
						<s:elseif test="#session.USER_GROUP=='services'">
							<li><a href="group_services.jsp" target="mainFrame"><s:text
										name="menu.group" /></a></li>
						</s:elseif>
					</s:else>
				</s:i18n>
			</div>
			<!-- end login -->
			<!-- start nav-->
			<div class="nav">
				<s:i18n name="globalMessage">
					<ul id="nav">
						<li><a href="index_body.jsp" target="mainFrame"><s:text
									name="menu.home" /></a></li>
						<li><a href="introduction.jsp" target="mainFrame"><s:text
									name="menu.introduction" /></a></li>
						<li><a href="mp3.jsp" target="mainFrame"><s:text
									name="menu.mp3dowload" /></a></li>
						<li><a href="map.jsp" target="mainFrame"><s:text
									name="menu.map" /></a></li>
						<li><a href="elective.jsp" target="mainFrame"><s:text
									name="menu.elective" /></a></li>
						<li><a href="chat.jsp" target="mainFrame"><s:text
									name="menu.chat" /></a></li>
						<li><a href="child.jsp" target="mainFrame"><s:text
									name="menu.childrensworkdisplayed" /></a></li>

					</ul>
				</s:i18n>
			</div>
			<!-- end nav-->
			<!-- end .header -->
		</div>
	</div>
</body>
</html>
